package com;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

public class Killsession extends HttpServlet{
    public void doGet(HttpServletRequest req,HttpServletResponse res){
       HttpSession session = req.getSession(true);
	   session.setAttribute("Login","No");
	   try{
		System.out.println("xiaonei1227");
	   res.sendRedirect("/xiaonei1227/dl.jsp");
	   }catch(IOException e){
	      e.printStackTrace();
	   }
    }	 
    public void doPost(HttpServletRequest req,HttpServletResponse res){
	   this.doGet(req,res);	  
	}    
}
